package com.tangcl.module_commom.network

/**
 * Created by TCL on 2021/10/11
 *
 * description:
 */
class BaseNetResponse<T> {
    //基础通用属性
    var errorCode: Int = -1//请求返回码(wanandroid请求成功：0)
    var errorMsg: String? = null//错误提示
    var data: T? = null
        //返回实体
        private set

    //附加属性
    var dataState: DataState? = null
    var error: Throwable? = null
    val isSuccess: Boolean
        get() = errorCode == 0
}